<template>
    <el-dropdown trigger="click">
        <div class="visible-pc">
            <el-button size="small">
                创建<i class="el-icon-arrow-down el-icon--right"></i>
            </el-button>
        </div>
        <div class="visible-mobil"><i class="el-icon-plus"></i></div>
        <el-dropdown-menu slot="dropdown">
            <el-dropdown-item><router-link to="/rich">写文章</router-link></el-dropdown-item>
            <el-dropdown-item>留言</el-dropdown-item>
            <el-dropdown-item>草稿箱</el-dropdown-item>
        </el-dropdown-menu>
    </el-dropdown>
</template>

<script>
export default {
    name: 'create-blog',
    props: {
        isLogin: Boolean,
        default: () => true
    }
}
</script>

<style scoped>
    .el-icon-plus {
        padding: 0 12px;
        font-size: 18px;
        font-weight: 600;
        vertical-align: middle;
        cursor: pointer;
    }
</style>